-- GENERATED SPELL FOR [Angry Oak Spirit] --


function spell0_33947(pUnit, Event) --@Rejuvenation,Heal--
pUnit:FullCastSpellOnTarget(15981,pUnit)
pUnit:RegisterEvent('Sorts_33947', 12000, 1)
end

function spell1_33947(pUnit, Event) --@Thorns,n/a--
pUnit:FullCastSpellOnTarget(35361,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33947', 614, 1)
end

function Sorts_33947(pUnit, Event)
local choix_sorts_33947 = math.random(0, 1)
if choix_sorts_33947 == 0 then
pUnit:RegisterEvent('spell0_33947', 1, 1)
end
if choix_sorts_33947 == 1 then
pUnit:RegisterEvent('spell1_33947', 1, 1)
end
end

function mob33947_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_33947', math.random(1500, 3000), 1)
end

function mob33947_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33947_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33947_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(33947, 1, 'mob33947_Action')
RegisterUnitEvent(33947, 2, 'mob33947_Leave')
RegisterUnitEvent(33947, 3, 'mob33947_Kill')
RegisterUnitEvent(33947, 4, 'mob33947_Die')
